package com.software_product_construction.backend_software_product_construction.dao;

import com.software_product_construction.backend_software_product_construction.pojo.Lessee;
import com.software_product_construction.backend_software_product_construction.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
@Repository
public interface SuperMapper {
    List<Lessee> getLesseeList(@Param("name") String name, @Param("from") Integer from, @Param("to") Integer to);
    List<User> getUserList(@Param("name")String name,@Param("from") Integer from,@Param("to") Integer to);
    void deleteLesseeById(@Param("id")String id);

    List<Lessee> getAllLessee();

    void modifyLesseeInfo(@Param("id")String id,@Param("password")String password, @Param("nickname")String nickname, @Param("sex") Integer sex);
}
